class ProListModel {
  String? id;
  String? projectName;
  String? projectAlias;
  String? projectType;
  int? isFocus;
  String? createTime;
  String? projectCommissioner;
  String? projectCommissionerId;
  String? phaseName;
  String? phaseStatus;
  String? phaseCode;
  String? phaseCompleteTime;
  String? content;
  String? dynamicType;
  String? dynamicTypeContent;
  int? timeInterval;
  String? investmentQuota;
  String? iqo;

  ProListModel({
    this.id,
    this.projectName,
    this.projectAlias,
    this.projectType,
    this.isFocus,
    this.createTime,
    this.projectCommissioner,
    this.projectCommissionerId,
    this.phaseName,
    this.phaseStatus,
    this.phaseCode,
    this.phaseCompleteTime,
    this.content,
    this.dynamicType,
    this.dynamicTypeContent,
    this.timeInterval,
    this.investmentQuota,
    this.iqo,
  });

  factory ProListModel.fromJson(Map<String, dynamic> json) => ProListModel(
        id: json['id'] as String?,
        projectName: json['projectName'] as String?,
        projectAlias: json['projectAlias'] as String?,
        projectType: json['projectType'].toString(),
        isFocus: json['isFocus'] as int?,
        createTime: json['createTime'] as String?,
        projectCommissioner: json['projectCommissioner'] as String?,
        projectCommissionerId: json['projectCommissionerId'] as String?,
        phaseName: json['phaseName'] as String?,
        phaseStatus: json['phaseStatus'] as String?,
        phaseCode: json['phaseCode'] as String?,
        phaseCompleteTime: json['phaseCompleteTime'].toString(),
        content: json['content'] as String?,
        dynamicType: json['dynamicType'] as String?,
        dynamicTypeContent: json['dynamicTypeContent'] as String?,
        timeInterval: json['timeInterval'] as int?,
        investmentQuota: json['investmentQuota'] as String?,
        iqo: json['iqo'] as String?,
      );

  Map<String, dynamic> toJson() => {
        'id': id,
        'projectName': projectName,
        'projectAlias': projectAlias,
        'projectType': projectType,
        'isFocus': isFocus,
        'createTime': createTime,
        'projectCommissioner': projectCommissioner,
        'projectCommissionerId': projectCommissionerId,
        'phaseName': phaseName,
        'phaseStatus': phaseStatus,
        'phaseCode': phaseCode,
        'phaseCompleteTime': phaseCompleteTime ?? '',
        'content': content,
        'dynamicType': dynamicType,
        'dynamicTypeContent': dynamicTypeContent,
        'timeInterval': timeInterval,
        'investmentQuota': investmentQuota,
        'iqo': iqo,
      };
}
